home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
game
/
patch
/
WHDIGamesS-T.lzh
/
SensibleSoccerCD.lha
/
Install
< prev
next >
Wrap
Text File
|
1980-09-02
|
3KB
|
139 lines
;****************************
(set #readme-file "ReadMe") ;name of readme file
(set #sub-dir "data") ;Sub directory of CD³² files
(set #cleanup "") ;files to delete after install
;****************************
;----------------------------
; checks if given program is installed, if not abort install
; #program - to check
(procedure P_ChkRun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort
(cat
"You must install \"" #program "\" first!\n"
"It must be accessible via the path.\n"
"You can find it in the WHDLoad package."
)
)
)
)
;----------------------------
; Wait for inserting disk
; IN: #AD_disk - name of disk
; OUT: -
(procedure P_disk
(askdisk
(dest #AD_disk)
(prompt ("\nInsert Disk \"%s\" in your CD drive!" #AD_disk))
(help @askdisk-help)
)
)
;****************************
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(set #program "WHDLoad")
(P_ChkRun)
(set @default-dest
(askdir
(prompt ("Where should \"%s\" be installed?\nA drawer \"%s\" will be automatically created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(if
(exists #dest)
(
(set #choice
(askbool
(prompt ("\nDirectory \"%s\" already exists.\n Should it be deleted?" #dest))
(default 1)
(choices "Delete" "Skip")
(help @askbool-help)
)
)
(if
(= #choice 1)
(run ("Delete \"%s\" \"%s.info\" All" #dest #dest))
)
)
)
(makedir #dest
(help @makedir-help)
(infos)
)
(copyfiles
(help @copyfiles-help)
(source ("Sensicd32.Slave"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("SensibleSoccer_CD³².info"))
(dest #dest)
)
(set #dest (tackon #dest #sub-dir))
(makedir #dest
(help @makedir-help
))
;----------------------------
(copyfiles
(help @copyfiles-help)
(source ("OSEMU.400"))
(dest #dest)
)
(set #choice
(askbool
(prompt ("Which version of Sensible Soccer CD³² do you wish to install?" #dest))
(default 1)
(choices "PAL" "NTSC")
(help @askbool-help)
)
)
(if
(= #choice 1)
(If
(copyfiles
(help @copyfiles-help)
(source ("GALAHAD"))
(dest #dest)
)
)
)
;----------------------------
(set #AD_disk "Sensible_Soccer")
(P_disk)
(copyfiles
(help @copyfiles-help)
(source ("%s:" #AD_disk))
(dest #dest)
(pattern "~(s|FREEANIM|README.TXT|SOCCER)")
)